import Vue from 'vue'
import Router from 'vue-router'

import Layout from "@/layout/Layout"

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/login',
      name: 'Login',
      component: () => import("@/components/Login"),
      meta:{
        title:'登录'
      }
    },
    {
      path: '/',
      name: 'Layout',
      component: Layout,
      redirect: "/welcome",
      meta:{
        title:'万家乐后台管理系统'
      },
      children:[
        {
          path: 'welcome',
          name: 'Welcome',
          component: () => import("@/views/Welcome"),
          meta:{
            title:'万家乐后台管理系统'
          },
        },
        {
          path: 'plan',
          name: 'Plan',
          component: () => import("@/views/Plan"),
        },
        {
          path: 'examine',
          name: 'Examine',
          component: () => import("@/views/Examine"),
        },
        {
          path: 'recheck',
          name: 'Recheck',
          component: () => import("@/views/Recheck"),
        },
        {
          path: 'summary',
          name: 'Summary',
          component: () => import("@/views/Summary"),
        },
        {
          path: 'notice',
          name: 'Notice',
          component: () => import("@/views/Notice"),
        },
        {
          path: 'advisory',
          name: 'Advisory',
          component: () => import("@/views/Advisory"),
        },
        {
          path: 'information',
          name: 'Information',
          component: () => import("@/views/Information"),
        },
        
      ],

    },
    
    
  ]
})
